WebDwarf


Click here for a complete list of operations.

AddDwarf

adds a Dwarf; returns dwarf_id

Test

To test the operation using the HTTP GET protocol, click the 'Invoke' button.
Parameter Value
dwarf_name:
born:
home_id:

SOAP

The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

POST /dwarf/WebDwarf.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://localhost/AddDwarf"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddDwarf xmlns="http://localhost">
      <dwarf_name>string</dwarf_name>
      <born>int</born>
      <home_id>int</home_id>
    </AddDwarf>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <AddDwarfResponse xmlns="http://localhost">
      <AddDwarfResult>int</AddDwarfResult>
    </AddDwarfResponse>
  </soap:Body>
</soap:Envelope>

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to be replaced with actual values.

GET /dwarf/WebDwarf.asmx/AddDwarf?dwarf_name=string&born=string&home_id=string HTTP/1.1
Host: localhost
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<int xmlns="http://localhost">int</int>

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to be replaced with actual values.

POST /dwarf/WebDwarf.asmx/AddDwarf HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Content-Length: length

dwarf_name=string&born=string&home_id=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<int xmlns="http://localhost">int</int>